{block name=body}

<div class="container content">
  	<div class="row">
		<div class="col-sm-12 hidden-xs hidden-sm">    
	        {include file='breadcrumbs.tpl'}
		</div>
		<div class="col-sm-12">
	        <h1 class="title">{$listing_name}</h1>
		</div>

 		<div class="col-sm-12">
			
			{$listing_content1}
        </div>
      </div><!-- /.row -->
</div>

<div id="mapbox">
    	    <div id="map-canvas">Loading Map...</div>
</div>


<div id="locationresults">
	<div class="container">
		<div class="row">
     	<div id="location-wrapper">

		{foreach $locations as $d}
	     <div class="col-sm-6 location-summary internationl loc" latitude="{$d.location_latitude}" longitude="{$d.location_longitude}" title="{$d.location_name}" pin="{$d.location_pin}">
				<div>
					<span class="location-suburb">{$d.location_name|upper}</span><br>
					  {$d.location_street}<br>
					  {$d.location_suburb}<br>
					{$d.location_state} {$d.location_postcode}<br /> 
					{if $d.location_phone}T: <a href="tel:{$d.location_phone}">{$d.location_phone}</a>{/if}<br />
    			{if $d.location_email}E: {obfuscate email=$d.location_email}{/if}<br />
					{if $d.location_url}<a href="{$d.location_url}" target="_blank">{$d.location_url|replace:"https://":""|replace:"http://":""}</a>{/if}<br />
				</div>
			</div>
     {/foreach}
     

       	</div>
		</div>
	</div>
</div>

  

{/block}


{* Place additional javascript here so that it runs after General JS includes *}
{block name=tail}
<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script src="/includes/js/location.js"></script>  
<script type="text/javascript">

</script>
{/block}
